package ch3;

public class OldDriver {
	String name;
	int age;

	public OldDriver(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}

	// public void driveCar(Car c) {
	// }
	//
	// public void driveBus(Bus b) {
	// }

	public void drive(Car c) {
		System.out.println(name + "开着小轿车。。。");
		c.start();
		c.stop();
	}

	public void drive(Bus b) {
		System.out.println(name + "开着" + b.lines + "公交车");
		b.enterStation();
	}
}
